package com.stx.test.serialize;

import java.io.Serializable;

/**
 * packageName com.stx.test.serialize
 *
 * @author YangYi
 * @className Animal
 * @date 2025/10/6
 * @description TODO
 */
public class Animal implements Serializable {
    // 显式声明 serialVersionUID
    private static final long serialVersionUID = 1L; // 版本 1

    private String name;

    private int age;

    private String height;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return "Animal{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height='" + height + '\'' +
                '}';
    }
}
